package com.laxcen.facestaticcheck.core

/**
 * 活体检测结果
 */
class DetectionResult() {

    var left: Int = 0
    var top: Int = 0
    var right: Int = 0
    var bottom: Int = 0
    var confidence: Float = 0.toFloat()
    var time: Long = 0
    var hasFace: Boolean = false
    var width:Int = 0
    var height:Int = 0

    constructor(faceBox: FaceBox, time: Long, hasFace: Boolean) : this() {
        this.left = faceBox.left
        this.top = faceBox.top
        this.right = faceBox.right
        this.bottom = faceBox.bottom
        this.confidence = faceBox.confidence
        this.time = time
        this.hasFace = hasFace
    }
}

